Hi I have structure like:
I want to show all descendants. For that purpose I use:
When current object is 1171. The output is correct:
But something strange happens when the current object is 1207. Then the result is only: 1208 ? Is that a bug? And how to show in depth all children of 1207 - 1208,1210,1211,1212 ??
Dinio - Mon Jan 25 05:42:41 EST 2016 |
Re: Show all descendants of object - strange behaviour Doesn't it appear to you that you got what you ask for? |
Re: Show all descendants of object - strange behaviour DOORSHAM - Mon Jan 25 08:27:30 EST 2016 Doesn't it appear to you that you got what you ask for? No, I want all the children and sub-children. |
Re: Show all descendants of object - strange behaviour Dinio - Mon Jan 25 08:30:06 EST 2016 No, I want all the children and sub-children. The "all" inside the for loop will only give you ALL direct children regardless of deleted or filtered objects (whereas the 'for Object in Object do' loop will respect the current display set). You still need recursion or iteration to get a hierarchy of all descendants. Regards, Mathias |